package com.ktjiaoyu.ktmall.service;

import com.ktjiaoyu.ktmall.entity.Category;

import java.util.List;

/**
 * @author xm
 * @date 2025/9/10
 * @Dome
 */
public interface CategoryService {
    List<Category> findAll();
    List<Category> findTree();
    //添加分类
    int insert(Category category);
    //修改分类
    int update(Category category);

    boolean saveOrUpdate(Category category);

    //根据ID删除类别信息
    boolean removeById(Long id);
}
